package com.billing.service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.billing.model.dao.UserScanBeanMapper;
import com.billing.model.dao.UserScanBufferBeanMapper;
import com.billing.model.entity.TUserScan;
import com.billing.model.entity.TUserScanBuffer;
import com.billing.service.UserScanBufferService;
import com.billing.service.UserScanService;
@Service
public class UserScanBufferServiceImpl implements UserScanBufferService {

	@Resource
	private UserScanBufferBeanMapper 	userScanCopyBeanMapper; 
	public int insertTUserScan(TUserScanBuffer userScan) {
		return userScanCopyBeanMapper.insertTUserScan(userScan);
	}
	public TUserScanBuffer selectUserScanByUid(String userid) {
		return userScanCopyBeanMapper.selectUserScanByUid(userid);
	}
	public int updateUserScan(TUserScanBuffer userScan) {
		return userScanCopyBeanMapper.updateUserScan(userScan);
	}
	public TUserScanBuffer selectUserScanById(String id) {
		return userScanCopyBeanMapper.selectUserScanById(id);
	}
	@Override
	public int updateUserScanByUseridAndType(TUserScanBuffer userScan) {
		return userScanCopyBeanMapper.updateUserScanByUseridAndType(userScan);
	}
	@Override
	public int insertTUserScanByUserScan(TUserScan userScan) {
		return userScanCopyBeanMapper.insertTUserScanByUserScan(userScan);
	}
	@Override
	public int updateUserScanByUserScan(TUserScan userScan) {
		return userScanCopyBeanMapper.updateUserScanByUserScan(userScan);
	}
	@Override
	public int updateUserScanByUseridAndTypeByUserScan(TUserScan userScan) {
		return userScanCopyBeanMapper.updateUserScanByUseridAndTypeByUserScan(userScan);
	}
	
}
